import 'core-js/stable';
import 'regenerator-runtime/runtime';
import 'babel-polyfill'
import Vue from 'vue'
import App from './App.vue'
import router from './router/router'
import store from './store'
import Video from 'video.js'
import 'video.js/dist/video-js.css'
import 'ant-design-vue/dist/antd.css'
import './style/index.scss'
import configFun from './common/common'

import 'nprogress/nprogress.css'


import 'xe-utils'
Vue.prototype.globalFun = configFun;
import Antd from 'ant-design-vue'
import axios from 'axios'

Vue.config.productionTip = false
Vue.use(Antd)
Vue.prototype.$axios = axios
import '@/icons'

import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
Vue.use(Viewer)
//图片放大
Viewer.setDefaults({
  Options: { 'inline': false, 'button': true, 'navbar': true, 'title': false, 'toolbar': true, 'tooltip': true, 'movable': true, 'zoomable': true, 'rotatable': true, 'scalable': true, 'transition': true, 'fullscreen': true, 'keyboard': false, 'url': 'data-source' }
})

// 引入 hxLayout
import hxLayout from 'hx-layout'
import 'hx-layout/hx-layout.css'
Vue.use(hxLayout)


let instance = null
function render(props = {}){
  const { container } = props

  instance = new Vue({
    render:h=>h(App),
    router,
    store,
    Video,
  }).$mount(container ? container.querySelector('#app'):'#app')
}

render()


